
public class Sensors
{
	Ultrasound USR;
	Odometry ODO;
	Compass COMP;
	
	public Sensors(){
		this.Sonar();
		this.Odom();
		this.Comp();
	}
	
	public void Sonar()
	{
		USR = new Ultrasound();
		new Thread(USR).start();
	}
	
	public void Odom()
	{
		ODO = new Odometry();
		new Thread(ODO).start();
	}
	
	public int getRight()
	{
		return USR.getRight();
	}
	
	public int getLeft(){
		return USR.getLeft();
	}
	
	public int getCenter(){
		return USR.getCenter();
	}
	
	public int getOdoCount(){
		return ODO.getCount();
	}
	
	public void resetOdo(){
		ODO.resetCount();
	}
	
	public double getHeading(){
		return COMP.getHeading();
	}
	
	public void Comp()
	{
		COMP = new Compass();
		new Thread(COMP).start();
	}
}
